package com.ruoyi.general.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 告警对象 alarm
 * 
 * @author ruoyi
 * @date 2025-07-02
 */
public class Alarm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long alarmId;

    /** 系统名称 */
    @Excel(name = "系统名称")
    private String systemName;

    /** 系统编码 */
    @Excel(name = "系统编码")
    private String systemCode;

    /** 点编码 */
    @Excel(name = "点编码")
    private String code;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 描述 */
    @Excel(name = "描述")
    private String codeDescribe;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date uploadTime;

    /** 持续时长 */
    @Excel(name = "持续时长")
    private String continuedTime;

    /** 持续时长名字 */
    @Excel(name = "持续时长名字")
    private String continuedTimeName;

    /** 参数编码 */
    @Excel(name = "参数编码")
    private String parameterCode;

    public void setAlarmId(Long alarmId) 
    {
        this.alarmId = alarmId;
    }

    public Long getAlarmId() 
    {
        return alarmId;
    }

    public void setSystemName(String systemName) 
    {
        this.systemName = systemName;
    }

    public String getSystemName() 
    {
        return systemName;
    }

    public void setSystemCode(String systemCode) 
    {
        this.systemCode = systemCode;
    }

    public String getSystemCode() 
    {
        return systemCode;
    }

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setCodeDescribe(String codeDescribe) 
    {
        this.codeDescribe = codeDescribe;
    }

    public String getCodeDescribe() 
    {
        return codeDescribe;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setUploadTime(Date uploadTime) 
    {
        this.uploadTime = uploadTime;
    }

    public Date getUploadTime() 
    {
        return uploadTime;
    }

    public void setContinuedTime(String continuedTime) 
    {
        this.continuedTime = continuedTime;
    }

    public String getContinuedTime() 
    {
        return continuedTime;
    }

    public void setContinuedTimeName(String continuedTimeName) 
    {
        this.continuedTimeName = continuedTimeName;
    }

    public String getContinuedTimeName() 
    {
        return continuedTimeName;
    }

    public void setParameterCode(String parameterCode) 
    {
        this.parameterCode = parameterCode;
    }

    public String getParameterCode() 
    {
        return parameterCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("alarmId", getAlarmId())
            .append("systemName", getSystemName())
            .append("systemCode", getSystemCode())
            .append("code", getCode())
            .append("type", getType())
            .append("codeDescribe", getCodeDescribe())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("uploadTime", getUploadTime())
            .append("continuedTime", getContinuedTime())
            .append("continuedTimeName", getContinuedTimeName())
            .append("parameterCode", getParameterCode())
            .toString();
    }
}
